.class public Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups;
.super Ljava/lang/Object;
.source "DialogEditGroups.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;
    }
.end annotation


# static fields
.field static dialog:Landroidx/appcompat/app/AlertDialog;


# direct methods
.method public static show(Landroid/content/Context;Llt/noframe/gpsfarmguide/models/GroupModel;Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;)V
    .locals 4

    .line 27
    new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f1100bc

    .line 29
    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    const-string v1, "layout_inflater"

    .line 31
    invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/view/LayoutInflater;

    const v1, 0x7f0c0051

    const/4 v2, 0x0

    .line 32
    invoke-virtual {p0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p0

    const v1, 0x7f0900f3

    .line 35
    invoke-virtual {p0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    const v2, 0x7f0900d1

    .line 36
    invoke-virtual {p0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageButton;

    .line 39
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/models/GroupModel;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 41
    new-instance v3, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$1;

    invoke-direct {v3, p2, p1}, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$1;-><init>(Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;Llt/noframe/gpsfarmguide/models/GroupModel;)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 50
    new-instance v2, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$2;

    invoke-direct {v2}, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$2;-><init>()V

    const v3, 0x7f11004f

    invoke-virtual {v0, v3, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 57
    new-instance v2, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;

    invoke-direct {v2, p1, v1, p2}, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$3;-><init>(Llt/noframe/gpsfarmguide/models/GroupModel;Landroid/widget/EditText;Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups$OnGroupChanged;)V

    const p1, 0x7f1101af

    invoke-virtual {v0, p1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 66
    invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->create()Landroidx/appcompat/app/AlertDialog;

    move-result-object p1

    sput-object p1, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups;->dialog:Landroidx/appcompat/app/AlertDialog;

    .line 67
    sget-object p1, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups;->dialog:Landroidx/appcompat/app/AlertDialog;

    invoke-virtual {p1, p0}, Landroidx/appcompat/app/AlertDialog;->setView(Landroid/view/View;)V

    .line 68
    sget-object p0, Llt/noframe/gpsfarmguide/dialogs/DialogEditGroups;->dialog:Landroidx/appcompat/app/AlertDialog;

    invoke-virtual {p0}, Landroid/app/Dialog;->show()V

    return-void
.end method
